using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace DOMercury.Managers
{
    static class SendKeysHelper
    {
        public static string KeyCodetoString(Keys k)
        {
            switch (k)
            {
                case Keys.A:
                case Keys.B:
                case Keys.C:
                case Keys.D:
                case Keys.E:
                case Keys.F:
                case Keys.G:
                case Keys.H:
                case Keys.I:
                case Keys.J:
                case Keys.K:
                case Keys.L:
                case Keys.M:
                case Keys.N:
                case Keys.O:
                case Keys.P:
                case Keys.Q:
                case Keys.R:
                case Keys.S:
                case Keys.T:
                case Keys.U:
                case Keys.V:
                case Keys.W:
                case Keys.X:
                case Keys.Y:
                case Keys.Z:
                    return k.ToString(); break;
                case Keys.Add:
                    return "{ADD}"; break;
                case Keys.Divide:
                    return "{DIVIDE}"; break;
                case Keys.Subtract:
                    return "{SUBTRACT}"; break;
                case Keys.NumPad0:
                case Keys.D0:
                    return "0"; break;
                case Keys.NumPad1:
                case Keys.D1:
                    return "1"; break;
                case Keys.NumPad2:
                case Keys.D2:
                    return "2"; break;
                case Keys.NumPad3:
                case Keys.D3:
                    return "3"; break;
                case Keys.NumPad4:
                case Keys.D4:
                    return "4"; break;
                case Keys.NumPad5:
                case Keys.D5:
                    return "5"; break;
                case Keys.NumPad6:
                case Keys.D6:
                    return "6"; break;
                case Keys.NumPad7:
                case Keys.D7:
                    return "7"; break;
                case Keys.NumPad8:
                case Keys.D8:
                    return "8"; break;
                case Keys.NumPad9:
                case Keys.D9:
                    return "9"; break;
                case Keys.Decimal:
                    return "{.}"; break;
                //case Keys.OemSemicolon:
                case Keys.Oem1:
                    return ":"; break;
                //case Keys.OemBackslash:
                case Keys.Oem102:
                    return "\\"; break;
                //case Keys.OemQuestion:
                case Keys.Oem2:
                    return "?"; break;
                //case Keys.Oemtilde:
                case Keys.Oem3:
                    return "{~}"; break;
                //case Keys.OemOpenBrackets:
                case Keys.Oem4:
                    return "{[}"; break;
                //case Keys.OemPipe:
                case Keys.Oem5:
                    return "{|}"; break;
                //case Keys.OemCloseBrackets:
                case Keys.Oem6:
                    return "{]}"; break;
                //case Keys.OemQuotes:
                case Keys.Oem7:
                    return "'"; break;
                default:
                    return "";
            }
        }
    }
}
